// 用户登录请求参数类型
export interface LoginRequest {
  username: string;
  password: string;
}

// 用户信息类型
export interface UserInfo {
  user_id: number;
  username: string;
  access_token: string;
  expires_at: number;
}

// API响应类型
export interface ApiResponse<T = any> {
  code: number;
  data: T;
  msg: string;
  tracers: string;
}

// 登录响应类型
export type LoginResponse = ApiResponse<UserInfo>;